package com.base.self.dto.commodityClassify;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommodityClassifyUpdateDTO implements Serializable {
    @ApiModelProperty(value = "分类id")
    @NotNull(message = "分类id不能为空")
    private Integer id;

    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    private String classifyName;

    @ApiModelProperty(value = "父级分类id")
    private Integer classifyPid;

    @ApiModelProperty(value = "分类图标")
    @NotBlank(message = "分类图标不能为空")
    private String classifyPic;

    @ApiModelProperty(value = "排序字段(值越大越在前)")
    private Integer classifySort;
}
